🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / docs / src / commonMain / kotlin / org / meshtastic / feature / docs / ai / ChirpySessionHolder.kt
Displaying Raw • Download
feature/docs/src/commonMain/kotlin/org/meshtastic/feature/docs/ai/ChirpySessionHolder.kt 0a44b948ec0573dc62ec68c19e46e62d40fcd1a3 (0a44b948) Text, 1.38 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.docs.ai
Tff7b72import T7ee787androidx.compose.runtime.getValue
Tff7b72import T7ee787androidx.compose.runtime.mutableStateOf
Tff7b72import T7ee787androidx.compose.runtime.setValue
Tff7b72import T7ee787org.koin.core.annotation.Single
Tff7b72import T7ee787org.meshtastic.feature.docs.model.AIDocAssistantSessionState
T8b949e/**
* Global Chirpy conversation state shared across all docs panes.
*
* Registered as a Koin singleton so both the list and detail entries access the same conversation. Uses Compose
* snapshot state so reads trigger recomposition automatically.
*/
Tf0883e@Single
Tff7b72class T56d364ChirpySessionHolder Tb4b4b4{
Tff7b72var Te6edf3showSheet Tff7b72by Te6edf3mutableStateOfTb4b4b4(Tff7b72falseTb4b4b4)
Tff7b72var Te6edf3sessionState Tff7b72by Te6edf3mutableStateOfTb4b4b4(Te6edf3AIDocAssistantSessionStateTb4b4b4(Tb4b4b4)Tb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s